﻿<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="utf-8" />
        <title>@ViewBag.Title</title>
        <link href="~/favicon.ico" rel="shortcut icon" type="image/x-icon" />
        <meta name="viewport" content="width=device-width" />

        <meta name="description" content="This is borko.si" />
        <meta name="keywords" content="borko, borkosi" />

        @Styles.Render("~/Content/css")
        @Scripts.Render("~/bundles/modernizr")
    
        @if (IsSectionDefined("Head"))
        {
            @RenderSection("Head", required: false)
        }
        
        <!-- Google Analytics script  -->
        <script type="text/javascript">
            var _gaq = _gaq || [];
            _gaq.push(['_setAccount', 'UA-43735914-1']);
            _gaq.push(['_trackPageview']);

            (function () {
                var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
                ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
                var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
            })();
        </script>

    </head>
    <body>
        <header>
            <section class="featured">
                <div class="content-wrapper">
                    <div class="header-left">
                        <a href="@Url.Action("Index", "Home")">
                            <img src="../../Images/borkoSiLogo.png" alt="borkoSi" height="50px" title="borkoSi"/>
                        </a>
                    </div>
                    <div class="header-right">
                        <nav>
                            <ul id="menu">
                                <li>@Html.ActionLink(@borkoSi.Resources.Shared.Layout.Home, "Index", "Home")</li>
                                <li>@Html.ActionLink(@borkoSi.Resources.Shared.Layout.Pictures, "Index", "Gallery")</li>
                                <li>@Html.ActionLink(@borkoSi.Resources.Shared.Layout.Videos, "Index", "Video")</li>
                                <li>@Html.ActionLink(@borkoSi.Resources.Shared.Layout.Cyclings, "Index", "Cycling")</li>
                            </ul>
                        </nav>
                    </div>
                </div>
            </section>
        </header>
        <div id="body-public">
            @*@RenderSection("featured", required: false)*@
            <div class="halfcircle"></div>
            <section class="content-wrapper main-content clear-fix">
                
                @if(IsSectionDefined("bodytitle"))
                {
                    <div class="body-title">
                        @RenderSection("bodytitle", required: false)
                    </div>
                }

                @RenderBody()

            </section>
        </div>
        <footer>
            <div class="content-wrapper">
                <div class="float-left">
                    &copy; @DateTime.Now.Year - borkoSi
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    <a href="mailto:@System.Web.Configuration.WebConfigurationManager.AppSettings["AdminEmail"]?subject=borkoSi">@borkoSi.Resources.Shared.Layout.Questions</a>
                    <a href="https://borkosi.codeplex.com/" target="_blank">@borkoSi.Resources.Shared.Layout.SourceCode</a>
                    @Html.ActionLink(@borkoSi.Resources.Shared.Layout.AboutMe, "Index", "AboutMe")
                </div>
                <div class="float-right" title="[@typeof(borkoSi.MvcApplication).Assembly.GetName().Version]">
                    @borkoSi.Resources.Shared.Layout.LastPublished <abbr class="timeago" title="@System.Web.Configuration.WebConfigurationManager.AppSettings["LastPublishDateTime"]">[@typeof(borkoSi.MvcApplication).Assembly.GetName().Version]</abbr>
                    <nav>
                        <ul id="menu">
                            <!--<li>@Html.ActionLink("Admin", "Index", "Admin")</li>-->
                        </ul>
                    </nav>
                </div>
            </div>
        </footer>

        @Scripts.Render("~/bundles/jquery")
        @RenderSection("scripts", required: false)

        <!-- TimeAgo -->
        <script type="text/javascript" src="@Url.Content("/Scripts/timeago.js")"></script>
        <script type="text/javascript" src="@Url.Content("/Scripts/timeagoSloLocale.js")"></script>

        <script type="text/javascript">

            $(document).ready(function () {
                $('abbr.timeago').timeago();
            });

            function preload(arrayOfImages) {
                $(arrayOfImages).each(function () {
                    $('<img/>')[0].src = this;
                });
            }

            // preload images
            preload([
                '../../Images/borkoSiLogo.png'
                //,'nextImage...'
            ])

        </script>

    </body>
</html>

